<%= simple_form_for [:admin, @app_version], :defaults => { :input_html => { :class => "form-control" } }, html: { multipart: true, class: 'form-horizontal' }  do |f| %>
  <fieldset>
    <legend><%= title %></legend>
    <%= f.input :name, label: '名称', collection: [['iOS客户端', 'ymtv_ios'], ['Android客户端', 'ymtv_android'], ['windows客户端', 'ymtv_windows']] %>
    <%= f.input :branch, label: '类型', collection: [['公众版', 'public'], ['个人版', 'private']] %>
    <%= f.input :version, label: '版本' %>
    <%= f.input :staff_emails, label: '相关人邮箱', hint: '多个联系人请用;间隔' %>
    <%= f.input :release, label: '是否发布', input_html: { :class => "" }  %>
    <%= f.input :enforce, label: '强制升级', input_html: { :class => "" }  %>
    <%= f.input :file, label: '安装包', hint: 'iOS客户端无需填写该字段',:input_html => { :class => "btn btn-default btn-sm form-control" } %>
    <%= f.input :upgrade_file, label: '升级包', hint: '适用于Widnows客户端', :input_html => { :class => "btn btn-default btn-sm form-control" } %>
    <%= f.input :itunes_url, label: 'itunes地址', hint: '非iOS客户端无需填写该字段' %>
    <%= f.association :terminal_versions, as: :check_boxes, label: '支持终端版本', label_method: :version, item_wrapper_class: 'radio-inline',:input_html => { :class => "" }  %>
    <%= f.input :note, label: '备注' %>
    <%= f.button :wrapped, value: '提 交' %>
  </fieldset>
<% end %>
<%= javascript_include_tag "datepicker.js" %>
<%= javascript_include_tag "prevent_label.js" %>